package com.example.anydo.bean;

import java.io.Serializable;
import java.util.ArrayList;

public class TaskBean implements Serializable {
    int code;
    String msg;
    DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{

        private int id;
        private int userId;
        private String title = "";
        private String description = "";
        private String date = "";
        private String time = "";
        private String rate = "";
        private String ifDone = "";
        private ArrayList<SubTaskBean.DataBean> subTasks = new ArrayList<>();

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getRate() {
            return rate;
        }

        public void setRate(String rate) {
            this.rate = rate;
        }

        public String getIfDone() {
            return ifDone;
        }

        public void setIfDone(String ifDone) {
            this.ifDone = ifDone;
        }

        public ArrayList<SubTaskBean.DataBean> getSubTasks() {
            return subTasks;
        }

        public void setSubTasks(ArrayList<SubTaskBean.DataBean> subTasks) {
            this.subTasks = subTasks;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "id=" + id +
                    ", userId=" + userId +
                    ", title='" + title + '\'' +
                    ", description='" + description + '\'' +
                    ", date='" + date + '\'' +
                    ", time='" + time + '\'' +
                    ", rate='" + rate + '\'' +
                    ", ifDone='" + ifDone + '\'' +
                    ", subTasks=" + subTasks +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "TaskBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
